// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import App from './App'
import router from './router'
import store from './store/store.js'
import '@/assets/style/border.css'
import '@/assets/style/reset.css'
import '@/assets/style/iconfont.css'
import 'swiper/dist/css/swiper.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import LyTab from 'ly-tab'
Vue.use(LyTab)
import fastClick from 'fastClick'
import BMap from 'BMap'
Vue.config.productionTip = false
fastClick.attach(document.body);
Vue.use(VueAwesomeSwiper)
Vue.use(ElementUI);
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>',
    mounted(){
  	  let map = new BMap.Map("allmap")
  	  let myCity=new BMap.LocalCity()
  	  myCity.get(this.myFun)
  },
  methods:{
	    myFun(result){
	  		  if(result.name){
	  			  this.$store.commit('CityBtn',result.name)
	  		  }else{
	  			  this.city='正在获取位置信息'
	  		  }
	  }
  }
})
